<?php

declare(strict_types=1);

namespace App\Constants;

use Hyperf\Constants\Annotation\Constants;
use Hyperf\Constants\Annotation\Message;
use Hyperf\Constants\EnumConstantsTrait;

#[Constants]
enum ReturnCode: int
{
    use EnumConstantsTrait;

    #[Message('请求成功')]
    case SUCCESS = 1000;

    #[Message('参数不可用')]
    case INVALID_PARAMS = 1001;

    #[Message('尚未授权登录')]
    case NOT_AUTH = 1003;

    #[Message('路由不存在')]
    case NOT_EXIST = 1004;

    #[Message('服务器异常')]
    case SERVER_ERROR = 1005;
}
